home *** CD-ROM | disk | FTP | other *** search
- /* $VER: stdarg.h 1.0 (02.03.95) */
-
- #ifndef _STDARG_H_
- #define _STDARG_H_
-
- #ifndef _STDDEF_H_
- #include <stddef.h>
- #endif
-
- #define va_arg(ap, type) ((type *)(ap += sizeof(type) < sizeof(int) ? (abort(), 0) : sizeof(type)))[-1]
- #define va_end(ap)
- #define __va_promote(type) (((sizeof(type) + sizeof(int) - 1) / sizeof(int)) * sizeof(int))
- #define va_start(ap, last) (ap = ((char *)&(last) + __va_promote(last)))
-
- #endif /* _STDARG_H_ */
-